package com.ruoyi.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 用户对象 bdm_user
 *
 * @author ruoyi
 * @date 2024-12-07
 */
@Data
public class BdmUser extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 系统用户id */
    @Excel(name = "系统用户id")
    private Long sysUserid;

    /** 父id 推荐者id */
    @Excel(name = "父id 推荐者id")
    private Long parentId;

    @TableField(exist = false)
    private String parentNickName;

    /** 分销奖励上一级id */
    @Excel(name = "分销奖励上一级id")
    private Long distributionParentId;

    /** 是否有奖金池分红标识 1有 2无 */
    @Excel(name = "是否有奖金池分红标识 1有 2无")
    private Long bonusFlag;

    /** 支付密码 */
    @Excel(name = "支付密码")
    private String payCode;

    /** 余额 */
    @Excel(name = "余额")
    private BigDecimal remainingSum;

    /** 收益 */
    @Excel(name = "收益")
    private BigDecimal earnings;

    /** 积分 */
    @Excel(name = "积分")
    private String creditScore;

    /** 累计充值 */
    @Excel(name = "累计充值")
    private String totalTopUp;

    /** 累计提现 */
    @Excel(name = "累计提现")
    private String totalWithdraw;

    /** 累计消费金额 */
    @Excel(name = "累计消费金额")
    private String totalConsumeMomey;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    @Excel(name = "奖金分红池位置标记")
    private Integer location;

    @Excel(name = "奖金分红池位置标记 后")
    private Integer laterLocation;

    private String openId;
//    @TableField(exist = false)
    private String userPhone;
    @TableField(exist = false)
    private String nickName;

    @TableField(exist = false)
    private Long userId;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date bonusFlagTime;

    /** 是否新客户 */
    @Excel(name = "是否新客户")
    private Long ifNewUser;

    // 是否第一次绑定上级
    private Long ifOne;

    @Excel(name = "是否开启奖金池分红1关闭")
    private Integer bonusStatus;

}
